package com.imay.live.helper;

import android.os.Environment;

import java.io.File;

/**
 * Created by jeaman on 2017/5/9.
 */

public class FileHelper {
    private static final String IMAGE_PATH = "vankamovie";

    private static FileHelper instance;

    private File mImageFile;

    private FileHelper() {
        mImageFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), IMAGE_PATH);
        if (!mImageFile.exists()) {
            mImageFile.mkdirs();
        }
    }

    public static synchronized FileHelper getInstance() {
        if (instance == null) {
            instance = new FileHelper();
        }
        return instance;
    }

    public File getImageFile() {
        return mImageFile;
    }
}
